package com.niit.entity;

/**
 ** 学生实体类: 存储学生信息
 * 
 * @author hanliang
 */
public class Student {

	private String sid;
	private String sname; 
	private String sgender;
	private String sbatch;
	private String spassword;

	public Student() {
		
	}

	public Student(String sid, String sname, String spassword) {
		this.sid = sid;
		this.sname = sname;
		this.spassword = spassword;
	}

	public Student(String sid, String sname, String spassword, String sgender, String sbatch) {
		this.sid = sid;
		this.sname = sname;
		this.sgender = sgender;
		this.sbatch = sbatch;
		this.spassword = spassword;
	}

	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public String getSgender() {
		return sgender;
	}

	public void setSgender(String sgender) {
		this.sgender = sgender;
	}

	public String getSbatch() {
		return sbatch;
	}

	public void setSbatch(String sbatch) {
		this.sbatch = sbatch;
	}

	public String getSpassword() {
		return spassword;
	}

	public void setSpassword(String spassword) {
		this.spassword = spassword;
	}

	@Override
	public String toString() {
		return sid + "\t" + sname + "\t\t" + spassword + "\t\t" + sgender + "\t" + sbatch;
	}
}
